<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of db
 *
 * @author chandu
 */
class db {

    private $host;
    private $username;
    private $password;
    private $dbname;

    public function connect() {
        $this->host = "localhost";
        $this->username = "root";
        $this->password = "";  //"9666119940";
        $this->dbname = "ifoxweb";
        $con = mysql_connect($this->host, $this->username, $this->password) or die("There is an error in db connection");
        if ($con) {
            $sel = mysql_select_db($this->dbname) or die("There is an error in selection db");
        } else {
            
        }
    }

}
